package com.atguigu.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RefreshScope
public class NacosConfigController {
	
	@Value("${config.info}")
	private String config;
	
	@GetMapping("/config")
	public String getConfig(){
		System.out.println("jrebel测试!!!");
		return config;
	}
	
	@GetMapping("/test")
	public String test(){
		return "测试";
	}
	
	@GetMapping("/test1")
	public String test1(){
		return "测试1";
	}
}
